# Makefile
KERNELDIR=/arm2410s/kernel-2410s
INCLUDER=$(KERNELDIR)/include
CROSS_COMPILE=armv4l-unknown-linux-
AS=$(CROSS_COMPILE)as
LD=$(CROSS_COMPILE)ld
CC=$(CROSS_COMPILE)gcc
CPP=$(CC) -E
AR=$(CROSS_COMPILE)ar
NM=$(CROSS_COMPILE)nm
STRIP=$(CROSS_COMPILE)strip
OBJCOPY=$(CROSS_COMPILE)objcopy
OBJDUMP=$(CROSS_COMPILE)objdump
CFLAGS+=-I..
CFLAGS+=-Wall -O -D__KERNEL__ -DMODULE -I$(INCLUDER)
TARGET=evad.o test_demo
all:$(TARGET)
evad.o:devfs.c
$(CC) -c $(CFLAGS) $^ -o $@
test_demo:test_demo.o
$(CC) $^ -o $@
install:
install -d .
install 0c $(TARGET).o .
clean:
rm -f *.o *~ core .depend
